2 Scenarios > 2.11 SMS > 2.11.5 Reading SMS

2.11.5
This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropri­ate buttons on the toolbar.
2.11.5.1
This chapter describes all the steps required to read a short message. There are several ways:
•
You can list all short messages from the specified storage using AT+CMGL or AT^SMGL. The only difference between both commands is that the standard command AT+CMGL changes the state of the listed messages from status “REC UNREAD” to “REC READ”, while the Siemens defined command leaves the status unchanged.
•
Also, you can read a short message by using AT+CMGR and AT^SMGR. Both commands serve to read a message from a specific index of the preferred memory. As stated above, the standard command AT+CMGR changes the state of a read message from status “REC UNREAD” to “REC READ”, while the Siemens defined command leaves the status unchanged.
2.11.5.2
For further details about the commands see [2].
2.11.5.3
Figure 81: Reading SMS – 1
Figure 82: Reading SMS - 2
2.11.5.4
•
2.11.5.5
***************************************
Comment: Reading SMS
***************************************
***************************************
Comment: List all received unread short message in text mode
Comment: Status "REC UNREAD" remains unchanged
**************************************
Subscr 1 Send: AT^SMGL="REC UNREAD"
Subscr 1 Receive: AT^SMGL="REC UNREAD"
Subscr 1 Receive: ^SMGL: 1,"REC UNREAD","+491795289609",,"03/08/13,19:18:46+08"
Subscr 1 Receive: Hello, how are you?
Subscr 1 Receive: ^SMGL: 2,"REC UNREAD","+491795289609",,"03/08/13,19:20:00+08"
Subscr 1 Receive: Hi, did you receive my last message?
Subscr 1 Receive: ^SMGL: 3,"REC UNREAD","+491795289609",,"03/08/13,19:21:47+08"
Subscr 1 Receive: Hi, did you call me yesterday?
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Read short message at index 1
Comment: Status "REC UNREAD" remains unchanged
***************************************
 
Subscr 1 Send: AT^SMGR=1
Subscr 1 Receive: AT^SMGR=1
Subscr 1 Receive: ^SMGR: "REC UNREAD","+491795289609",,"03/08/13,19:18:46+08"
Subscr 1 Receive: Hello, how are you?
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: List all received unread short message in text mode
Comment: Status "REC UNREAD" changes to "REC READ"
***************************************
 
Subscr 1 Send: AT+CMGL="REC UNREAD"
Subscr 1 Receive: AT+CMGL="REC UNREAD"
Subscr 1 Receive: +CMGL: 1,"REC UNREAD","+491795289609",,"03/08/13,19:18:46+08"
Subscr 1 Receive: Hello, how are you?
Subscr 1 Receive: +CMGL: 2,"REC UNREAD","+491795289609",,"03/08/13,19:20:00+08"
Subscr 1 Receive: Hi, did you receive my last message?
Subscr 1 Receive: +CMGL: 3,"REC UNREAD","+491795289609",,"03/08/13,19:21:47+08"
Subscr 1 Receive: Hi, did you call me yesterday?
Subscr 1 Receive:
Subscr 1 Receive: OK
***************************************
Comment: List all received read short message in text mode
***************************************
 
Subscr 1 Send: AT+CMGL="REC READ"
Subscr 1 Receive: AT+CMGL="REC READ"
Subscr 1 Receive: +CMGL: 1,"REC READ","+491795289609",,"03/08/13,19:18:46+08"
Subscr 1 Receive: Hello, how are you?
Subscr 1 Receive: +CMGL: 2,"REC READ","+491795289609",,"03/08/13,19:20:00+08"
Subscr 1 Receive: Hi, did you receive my last message?
Subscr 1 Receive: +CMGL: 3,"REC READ","+491795289609",,"03/08/13,19:21:47+08"
Subscr 1 Receive: Hi, did you call me yesterday?
Subscr 1 Receive:
Subscr 1 Receive: OK
***************************************
Comment: Read short message from index 3
***************************************
 
Subscr 1 Send: AT+CMGR=3
Subscr 1 Receive: AT+CMGR=3